package lab2.text28;
import java.util.InputMismatchException;
import java.util.Scanner;
/**
 * Created by Administrator on 2017/11/20.
 */
public class Text {
    public static void main(String[] args) {
        double radius=0;
        double area;
        Scanner scanner = new Scanner(System.in);
        System.out.println("Please input radius:");
        area=3.14*radius*radius;
        try {
            radius = scanner.nextInt();
        }catch(InputMismatchException e) {
            System.out.println("类型不匹配！！");
        }finally{
            System.out.println("radius:"+radius);
        }
        area=3.14*radius*radius;
        System.out.println("area:"+area);
        }
}
